package player;
import java.util.*;
import ttt.*;

public class IdiotAI implements Player {
	
	public String toString() {
		return "Idiot AI";
	}
	
	public Point placeMark(TicTacToe t) {
		Random r = new Random();
		int row, col;
		
		do {
			 row = r.nextInt(3);
			 col = r.nextInt(3);
		} while(t.isOccupied(row, col) && !t.finished());
		 
		 return new Point(row, col);
	}
}
